#ifndef ADDRECORD_H
#define ADDRECORD_H

#include <QDialog>
#include <QMessageBox>
#include "record.h"

// mindatetime can be set to current time via functions
// void	setMaximumTime ( const QTime & max )
// void	setMinimumDate ( const QDate & min )
#include "ui_addrecord.h"
using namespace std;

class AddRecord : public QDialog, public Ui::AddRecord{
    Q_OBJECT
private:
    Record record;
public:
    AddRecord();
signals:
    void on_addCategoryButton_clicked();
    void on_recordAcceptButton_clicked();
    void on_recordCancelButton_clicked();
    void on_deleteCategoryButton_clicked();
    void sendRecord(QDateTime, string, string, string, double);
    void sendCategory(string);
    void removeCategory(string);
public slots:
    void construct();
    void addNewCategory();
    void deleteCategory();

};

#endif // ADDRECORD_H
